<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
 
<HEAD>
<TITLE>MSP430 USCI/EUSCI UART Baudrate Calculator</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<style type="text/css">
    input{ 
         text-align:right; 
         } 
</style> 
</HEAD>

<body>

<script src="baudrate.js"></script>

<h1>MSP430 USCI/EUSCI UART Baud Rate Calculation</h1>
<blockquote><!-- start of page table --> 
    <table border="0">
        <tr>
            <td>USCI/EUSCI:</td>
            <td><select id="usci"> <option value="USCI" selected="selected">USCI</option> <option value="EUSCI">EUSCI</option></select></td>
        </tr>
        <tr>
            <td>Clock:</td>
            <td>
                <select id="clocksel" onchange="checkClockCustom();">
                    <option value="32768" selected="selected">32.768K</option>
                    <option value="1000000">1M</option>
                    <option value="1048576">1.048M</option>
                    <option value="4000000">4M</option>
                    <option value="4194304">4.194M</option>
                    <option value="8000000">8M</option>
                    <option value="8388608">8.388M</option>
                    <option value="12000000">12M</option>
                    <option value="16000000">16M</option>
                    <option value="16777216">16.777M</option>
                    <option value="20000000">20M</option>
                    <option value="Custom">Custom</option>
                </select>
                Hz
            </td>
            <td id="clockCell">
                <!--<input id= "clock" name="clock" type="text" disabled="on" size="10" value="32768"></input>-->
            </td>
        </tr>
        <tr>
            <td>Baud rate:</td>
            <td>
                <select id="brsel" onchange="checkBaudrateCustom();">
                    <option value="1200">1200</option>
                    <option value="2400">2400</option>
                    <option value="4800">4800</option>
                    <option value="9600" selected="selected">9600</option>
                    <option value="19200">19200</option>
                    <option value="38400">38400</option>
                    <option value="57600">57600</option>
                    <option value="115200">115200</option>
                    <option value="230400">230400</option>
                    <option value="460800">460800</option>
                    <option value="Custom">Custom</option>
                </select>
                bps
            </td>
            <td id="baudrateCell">
                <!--<input id="baud" name="baud" type="hidden" size="10" value="9600"></input>-->
            </td>
        </tr>
        <!--<tr>
            <td>Oversampling:</td>
            <td><input name="oversampling" id="oversampling" type="checkbox"></td>
        </tr>-->
        <tr>
            <td><button type="button" onclick="calculateBaudrate();">calculate</button><td>
        </tr>
    </table>
    <p id="res_API"></p>
    <table border="0">
        <tr>
            <td><p id="lab_UCBRx"></p></td>
            <td><p id="res_UCBRx"></p></td>
        </tr>
        <tr>
            <td><p id="lab_UCFx"></p></td>
            <td><p id="res_UCFx"></p></td>
        </tr>
        <tr>
            <td><p id="lab_UCSx"></p></td>
            <td><p id="res_UCSx"></p></td>
        </tr>
        <tr>
            <td><p id="lab_UCOS16"></p></td>
            <td><p id="res_UCOS16"></p></td>
        </tr>
        <!--<tr>
            <td>TX Max Error:</td>
            <td><p id="res_TXMaxError"> </p> </td>
        </tr>-->
    </table>


</blockquote><!-- end of page table -->

</body>

</HTML>